import { createSlice } from "@reduxjs/toolkit"
const yzh = createSlice({
    name: "yzh",
    initialState: {
        activeIndex: 0
    },
    //fangfa
    reducers: {
        setActiveIndex(state, actions) {
            state.activeIndex = actions.payload
        },
    }
})
export const { setActiveIndex } = yzh.actions
export default yzh.reducer